package com.eb.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Region {
    private Integer id;
    private String title;     //帖子标题
    private String  name;   //帖子内容
    private Integer   userId;       //用户id
    private String   userNickname;       //用户昵称
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;   // 创建时间
}
